var http = require('http')

var server = http.createServer()

server.on('request', function(request, response){
    console.log(request.url)

    var url = request.url
    if (url == '/my') {
        response.write('smallinsect 1 /my')
    } else if (url == '/a') {
        response.write('smallinsect 1 /a')
    } else {
        response.write('smallinsect end ...')
    }



    response.end()
})

server.listen(3000, function(){
    console.log('服务器启动成功了')
})
